/**
 * 
 */
package com.rf.richfitwheel.admin.feignclient;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.rf.richfitwheel.common.utils.TreeUtils;

/**
 * 组织机构接口
 * @author hushouquan
 *
 */
@FeignClient(name="RICHFITWHEEL-ADMIN-SERVER/sys")
public interface FSysOrgService {

	/**
	 * 获取树形机构
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/org/treeList/{tenantId}")
	@ResponseBody
	public List<TreeUtils> treeList(@PathVariable("tenantId") String tenantId) throws Exception;
	
	/**
	 * 获取含岗位的树形机构
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/station/treeStationList/{tenantId}")
	@ResponseBody
	public List<TreeUtils> treeStationList(@PathVariable("tenantId") String tenantId) throws Exception;
	
	/**
	 * 获取含岗位的树形机构，icon属性存的是id
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/station/treeStationListIconFnId/{tenantId}")
	@ResponseBody
	public List<TreeUtils> treeStationListIconFnId(@PathVariable("tenantId") String tenantId) throws Exception;
}
